package com.sanyang.lawyer.mapper.client;


import com.sanyang.lawyer.entity.Client;
import com.sanyang.lawyer.entity.Clientpage;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ClientMapper  {

    //通过客户编号查询
    public Client getbyid(int clientid);
    //查询所有我的客户
    public List<Client> listall();
    //查询表中数据条数
    public int getcount(Map<String,Object> map);
    //查询所有对方当事人
    public int getcountprivy(Map<String,Object> map);
    //添加信息
    public void insertOne(Client client);

    //通过案件与客户表查询出所有对方当事人
    public List<Client> listprivyall(Map<String,Object> map);
    //修改所有的对方当事人
    public void updateclient(Client client);
    //分页加高级查询
    public List<Client> listallpage(Map<String,Object> map);
    //以客户名称查询
    public Client getbyname(String clientName);
}
